package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Rambo 2020/5/23
 * Describe:
 */
public class AlbumDTO implements Parcelable {



    public String url;
    public String uploadTime;

    public AlbumDTO(String url, String uploadTime) {
        this.url = url;
        this.uploadTime = uploadTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.url);
        dest.writeString(this.uploadTime);
    }

    public AlbumDTO() {
    }

    protected AlbumDTO(Parcel in) {
        this.url = in.readString();
        this.uploadTime = in.readString();
    }

    public static final Creator<AlbumDTO> CREATOR = new Creator<AlbumDTO>() {
        @Override
        public AlbumDTO createFromParcel(Parcel source) {
            return new AlbumDTO(source);
        }

        @Override
        public AlbumDTO[] newArray(int size) {
            return new AlbumDTO[size];
        }
    };

    @Override
    public String toString() {
        return "AlbumDTO{" +
                "url='" + url + '\'' +
                ", uploadTime='" + uploadTime + '\'' +
                '}';
    }
}
